﻿angular.module('SystemManage').config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $stateProvider.
            //用户
            state('index.User', {
                url: '/User/Edit',
                templateUrl: 'modules/SystemManage/client/views/User.client.view.html',
                controller: 'UserController',
                access: { requiredAuthentication: true }
            }).
            state('index.UserById', {
                url: '/User/Edit/:id',
                templateUrl: 'modules/SystemManage/client/views/User.client.view.html',
                controller: 'UserController',
                access: { requiredAuthentication: true }
            }).
            state('index.UserList', {
                url: '/User/List',
                templateUrl: 'modules/SystemManage/client/views/UserList.client.view.html',
                controller:'UserListController',
                access: { requiredAuthentication: true }
            }).
            //角色
            state('index.Role', {
                url: '/Role/Edit',
                templateUrl: 'modules/SystemManage/client/views/Role.client.view.html',
                controller: 'RoleController',
                access: { requiredAuthentication: true }
            }).
            state('index.RoleById', {
                url: '/Role/Edit/:id',
                templateUrl: 'modules/SystemManage/client/views/Role.client.view.html',
                controller: 'RoleController',
                access: { requiredAuthentication: true }
            }).
            state('index.RoleList', {
                url: '/Role/List',
                templateUrl: 'modules/SystemManage/client/views/RoleList.client.view.html',
                controller:'RoleListController',
                access: { requiredAuthentication: true }
            }).
            //菜单
            state('index.Menu', {
                url: '/Menu/Edit',
                templateUrl: 'modules/SystemManage/client/views/Menu.client.view.html',
                controller: 'MenuController',
                access: { requiredAuthentication: true }
            }).
            state('index.MenuById', {
                url: '/Menu/Edit/:id',
                templateUrl: 'modules/SystemManage/client/views/Menu.client.view.html',
                controller: 'MenuController',
                access: { requiredAuthentication: true }
            }).
            state('index.MenuList', {
                url: '/Menu/List',
                templateUrl: 'modules/SystemManage/client/views/MenuList.client.view.html',
                controller:'MenuListController',
                access: { requiredAuthentication: true }
            });
    }
]);
